<?php
include_once(dirname(__FILE__).'/../database/dbSchedules.php');
class testdbSchedules extends UnitTestCase {
	function testdbSchedulesModule() {

		schedule_person("One", "Mon", "9-12", "jane2077291234");
		$this->assertTrue (is_scheduled("One", "Mon", "9-12", "jane2077291234"));
		$this->assertTrue (get_persons("One", "Mon", "9-12")->get_id()=="jane2077291234");
		$this->assertTrue (get_person_ids("One", "Mon", "9-12")=="jane2077291234");
		unschedule_person("One", "Mon", "9-12", "jane2077291234");
		$this->assertFalse (is_scheduled("One", "Mon", "9-12", "jane2077291234"));
		
		echo("testdbSchedulesNew complete");
	}
}
?>
